package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface SetMealService {
    //添加套餐
    public void add(Setmeal setmeal, Integer[] checkgroupIds);
    //分页查询
    public PageResult findPage(QueryPageBean queryPageBean);
    //删除套餐
    public void delete(Integer id);
    //通过id查询套餐
    public Setmeal findById(Integer id);
    //通过套餐id查询检查组id
    public List<Integer> findCheckGroupIdsBySetMealId(Integer id);

    //编辑套餐
    public void edit(Setmeal setmeal, Integer[] checkgroupIds);

    //查询所有的套餐
    public List<Setmeal> findAll();
    //通过套餐id查询套餐
    public Setmeal findSetMealById(Integer id);
    //查询套餐的数量
    public List<Map<String, Object>> findSetMealCount();
}
